package cn.bigcontainer.alt.meta.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import cn.bigcontainer.alt.common.entity.BigMap;
import cn.bigcontainer.alt.common.po.Po;
import cn.bigcontainer.alt.common.util.WoKit;
import cn.bigcontainer.alt.meta.typehandler.BigMapHandler;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 *
 * @author cailei
 * @date 2019-12-04
 */
@Slf4j
@Data
public class MDictionary implements Po {

	@TableId(type = IdType.AUTO)
	protected Integer id;

	protected String name;// 100

	protected String value;// 200

	protected String type;// 100

	protected String description;// 500

	@TableField(typeHandler = BigMapHandler.class)
	protected BigMap<String, Object> data = new BigMap<>();// text

	public MDictionary(Po po) {
		WoKit.cloneBySetter(po, this);
	}

	public MDictionary() {

	}
}
